<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
function resourcesAddSubmit(formObj){
	$("#rse_add_rseTypeName").val($("#rse_add_rseType").find("option:selected").text());
	return validateCallback(formObj,navTabAjaxDone);
}
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoAdd"/>资源</span></li>
			<li class="line">line</li>
		</ul>
	</div>
    <form id="addResourcesFrom" action="<c:url value="/function/resourcesAdd.shtml"/>" method="post" onsubmit="return resourcesAddSubmit(this);">
    <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">          
        <tbody>
            <tr>
            	<td>所属功能：</td>
                <td>
                    <input type="hidden" name="rse_add_funId" id="rse_add_funId" value="${fun.funId}"/>
                    <input type="hidden" name="rse_add_funName" id="rse_add_funName" value="${fun.funName}"/>
                    <input type="hidden" name="rse_add_rseCode" id="rse_add_rseCode" value="${fun.funCode}"/>
                    ${fun.funName}
                </td>
                <td>资源类型：</td>
                <td>
	                <select class="required" name="rse_add_rseType" id="rse_add_rseType">
	                	<option value="">--请选择--</option>
	           			<c:forEach items="${typeList}" var="atrType">
	           				<option value="${atrType.atrValue}">${atrType.atrName}</option>
	           			</c:forEach>
	           		</select>
	    			<input type="hidden" name="rse_add_rseTypeName" id="rse_add_rseTypeName"/>
				</td>
            </tr>
            <tr>
                <td>资源地址：</td>
                <td colspan="3">
                	<input type="text" name="rse_add_rseUrl" id="rse_add_rseUrl" maxlength="100">
                </td>
            </tr>
            <tr>
                <td>资源类：</td>
                <td>
                	<input type="text" name="rse_add_rseClass" id="rse_add_rseClass" maxlength="20">
                </td>
                <td>资源方法：</td>
                <td>
                	<input type="text" name="rse_add_rseFunction" id="rse_add_rseFunction" maxlength="20">
                </td>
            </tr>
            <tr>
                <td>备注：</td>
                <td colspan="3">
                	<input type="text" name="rse_add_rseRemark" id="rse_add_rseRemark" maxlength="100">
                </td>
            </tr>
        </tbody>
    </table>
	<div class="panelBar">
        <div class="buttonActive">
        <c:if test="${p:isPower('/function/resourcesAdd.shtml',sessionScope.loginAccount)}">
        <div class="buttonContent"><button type="submit"><spring:message code="add.btnAdd"/></button></div>
        </c:if>
        </div>
	</div>
    </form>
</div>